﻿using FurionTemplate.Core.Enum;
using System;

namespace FurionTemplate.Application.AOP
{
    /// <summary>
    /// 这个Attribute就是使用时候的验证
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, Inherited = true)]

    public class ULogAttribute : Attribute
    {
        /// <summary>
        /// 操作名称
        /// </summary>
        public string LogName { get; set; }
        /// <summary>
        /// 日志类型
        /// </summary>
        public LogTypeEnum LogType { get; set; } = LogTypeEnum.Operation;

        /// <summary>
        /// 操作类型
        /// </summary>
        public OperationTypeEnum OperationType { get; set; }
    }

    /// <summary>
    /// 用户操作
    /// </summary>
    public class ULogModel
    {
        public ULogAttribute ULogAttribute { get; set; }
        public object ReturnValue { get; set; }
    }
}
